<?php

require_once("Manager.php");

class movePlanHolderController
{
	private $planholder;
	private $employee;
	
	function __construct($planholder, $employee)
	{
		$this->planholder = $planholder;
		$this->employee = $employee;
	}
	function sendMovePlanholderRequest()
	{
		$manager = new Manager();
		$manager->movePlanholder($this->planholder, $this->employee);
	}

}

echo $_REQUEST['planholder']." ".$_REQUEST['new_employee'];

$move = new movePlanHolderController($_REQUEST['planholder'], $_REQUEST['new_employee']);
$move->sendMovePlanholderRequest();
header("Location: managerpage.php");


?>